import { Component, OnInit } from '@angular/core';
import { ApiService } from './../core/api/api.service';

@Component({
  templateUrl: './security.html',
  styleUrls: ['./security.less']
})

export class SecurityComponent implements OnInit {
  res: any = {};
  active = 1;
  isTradePw;
  constructor(private apiService: ApiService) {
    this.apiService.post('是否设置用户交易密码', {}).then(res => {
        this.isTradePw = res['data'].isTradePw;
    });
  }
  ngOnInit() {
    
  }
  showThis(i){
      if(this.active !== i){
          this.active = i;
      }
  }
}
